import java.util.Random;

public class Liczba {


	static String showIn2System(int n)
	{
		System.out.println(Integer.toBinaryString(n));
		return Integer.toBinaryString(n);
	}
	
	static String showIn8System(int n)
	{
		System.out.println(Integer.toOctalString(n));
		return Integer.toOctalString(n);
	}
	
	static int showIn10System(int n)
	{
		System.out.println(n);
		return n;
	}
	
	static String showIn16System(int n)
	{
		System.out.println(Integer.toHexString(n));
		return Integer.toHexString(n);
	}
	
	public static void main(String[] args) {
		
		int n;
		
		/*if(args.length < 1)
		{
			Random rand = new Random();
			n = rand.nextInt(100);
		}
		else
			n=Integer.parseInt(args[0]);*/
		Random rand = new Random();
		n = rand.nextInt(100);
		
		showIn2System(n);
		showIn8System(n);
		showIn10System(n);
		showIn16System(n);
		
	}

}
